package cn.unknownerror.ueteam.gui.frames;

import cn.unknownerror.ueteam.data.ConfigurationManager;
import cn.unknownerror.ueteam.gui.DynamicFrame;
import cn.unknownerror.ueteam.team.ITeam;
import org.bukkit.OfflinePlayer;

public class PlayerManageFrame extends DynamicFrame<ITeam>{

    public PlayerManageFrame(ConfigurationManager config){
        super(9,"");
        setButton(0,new PlayerManageButton(config,"teleport"));
        setButton(8,new PlayerManageButton(config,"kick"));
    }

    public void update(OfflinePlayer player){
        ((PlayerManageButton)getButton(0)).setExecuted(player);
        ((PlayerManageButton)getButton(8)).setExecuted(player);
    }

}
